package controllers.data.providers;

import java.util.HashMap;
import java.util.Map;


public class Namespace
{
    @SuppressWarnings ("serial")
    private static final Map<String, String> namespace = new HashMap<String, String>() {
                                                           {
                                                               put("rdf", "http://www.w3.org/1999/02/22-rdf-syntax-ns#");
                                                               put("rdfs", "http://www.w3.org/2000/01/rdf-schema#");
                                                               put("owl", "http://www.w3.org/2002/07/owl#");
                                                               put("foaf", "http://xmlns.com/foaf/0.1/");
                                                           }
                                                       };


    public static String toSparqlFormat()
    {
        StringBuilder sb = new StringBuilder();

        for(String s : namespace.keySet()) {
            sb.append("PREFIX " + s + ":<" + namespace.get(s) + ">");
            sb.append(" ");
        }

        return sb.toString();
    }
}
